import layout from '@/layout/index'
const grkRouter = [
  {
    path: '/grk',
    component: layout,
    isParent: true,
    redirect: '/grk/patient/list',
    meta: {
      title: '感染科',
      icon: 'grk'
    },
    children: [
      {
        path: '/grk/patient/list',
        component: () => import('@/views/grk/patient/list/index'),
        meta: {
          title: '患者管理',
          icon: 'patient'
        }
      },
      {
        path: '/grk/diagnose/list',
        component: () => import('@/views/grk/diagnose/list/index'),
        meta: {
          title: '就诊管理',
          icon: 'diagnose'
        }
      },
      {
        path: '/grk/sample/list',
        component: () => import('@/views/grk/sample/list/index'),
        meta: {
          title: '样本管理',
          icon: 'diagnose'
        }
      },
      {
        path: '/grk/sample/record/list',
        component: () => import('@/views/grk/sample/record/list/index'),
        meta: {
          title: '使用记录',
          icon: 'diagnose'
        }
      }
    ]
  },
  {
    name: '新建患者',
    path: '/grk/patient/create',
    component: () => import('@/views/grk/patient/form/index'),
    meta: {
      title: '新建'
    }
  },
  {
    name: '编辑患者',
    path: '/grk/patient/edit/:id',
    component: () => import('@/views/grk/patient/form/index'),
    meta: {
      title: '编辑'
    }
  },
  {
    name: '新建就诊记录',
    path: '/grk/diagnose/create',
    component: () => import('@/views/grk/diagnose/form/index'),
    meta: {
      title: '新建'
    }
  },
  {
    name: '编辑就诊记录',
    path: '/grk/diagnose/edit/:id',
    component: () => import('@/views/grk/diagnose/form/index'),
    meta: {
      title: '编辑'
    }
  }
]
export default grkRouter
